
"""
1.输入一个字符串，判断字符串中有多少个字母？多少个数字？多少个其他符号

例如:'hello, nice to meet you. i am 18. my birthday is 1999-05-23'
		-- 结果:

"""
num_count = 0
str_count = 0
other_count = 0

data = input("输入一个字符串:")
for ch in data:
    if ch.isdigit():
        num_count += 1
    elif ch.isalpha():
        str_count += 1
    else:
        other_count += 1

print(f'字母的个数为{str_count}个，数字个数为{num_count}个， 其他字符为{other_count}')